package com.lsl.im.common;

import java.util.HashMap;
import java.util.Map;

import org.jivesoftware.smack.Chat;

public class ChatContainer {
	
	private static Map<String,Chat> chatMap = new HashMap<String,Chat>();
	
	public static void putChat(String JID , Chat chat){
		chatMap.put(JID, chat);
	}
	
	public static Chat getChat(String JID){
		return chatMap.get(JID);
	}
	
	public static boolean isChatExits(String JID){
		return chatMap.containsKey(JID);
	}
	
	public static void removeChat(String JID){
		chatMap.remove(JID);
	}
	
}
